package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SyOrderItemMapper;
import com.ruoyi.order.domain.SyOrderItem;
import com.ruoyi.order.service.ISyOrderItemService;

/**
 * 订单项/快照 Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-20
 */
@Service
public class SyOrderItemServiceImpl implements ISyOrderItemService 
{
    @Autowired
    private SyOrderItemMapper syOrderItemMapper;

    /**
     * 查询订单项/快照 
     * 
     * @param itemId 订单项/快照 主键
     * @return 订单项/快照 
     */
    @Override
    public SyOrderItem selectSyOrderItemByItemId(String itemId)
    {
        return syOrderItemMapper.selectSyOrderItemByItemId(itemId);
    }

    /**
     * 查询订单项/快照 列表
     * 
     * @param syOrderItem 订单项/快照 
     * @return 订单项/快照 
     */
    @Override
    public List<SyOrderItem> selectSyOrderItemList(SyOrderItem syOrderItem)
    {
        return syOrderItemMapper.selectSyOrderItemList(syOrderItem);
    }

    /**
     * 新增订单项/快照 
     * 
     * @param syOrderItem 订单项/快照 
     * @return 结果
     */
    @Override
    public int insertSyOrderItem(SyOrderItem syOrderItem)
    {
        return syOrderItemMapper.insertSyOrderItem(syOrderItem);
    }

    /**
     * 修改订单项/快照 
     * 
     * @param syOrderItem 订单项/快照 
     * @return 结果
     */
    @Override
    public int updateSyOrderItem(SyOrderItem syOrderItem)
    {
        return syOrderItemMapper.updateSyOrderItem(syOrderItem);
    }

    /**
     * 批量删除订单项/快照 
     * 
     * @param itemIds 需要删除的订单项/快照 主键
     * @return 结果
     */
    @Override
    public int deleteSyOrderItemByItemIds(String[] itemIds)
    {
        return syOrderItemMapper.deleteSyOrderItemByItemIds(itemIds);
    }

    /**
     * 删除订单项/快照 信息
     * 
     * @param itemId 订单项/快照 主键
     * @return 结果
     */
    @Override
    public int deleteSyOrderItemByItemId(String itemId)
    {
        return syOrderItemMapper.deleteSyOrderItemByItemId(itemId);
    }
}
